package www.xpu.edu.app.job;

import android.content.Intent;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import www.xpu.edu.app.R;

import www.xpu.edu.app.Activity_change;


public class Activity_job_2 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_job_2);
        ActionBar actionBar = getSupportActionBar();
        if (actionBar != null) {
            actionBar.hide();
        }
        //TextView text1=(TextView)findViewById(R.id.job2_text);

        Button button1=(Button)findViewById(R.id.title_change);
        Button button_1=(Button)findViewById(R.id.job_2_button1);
        Button button_2=(Button)findViewById(R.id.job2_button2);
        //Button button_3=(Button)findViewById(R.id.job2_button3);
        //Button button_4=(Button)findViewById(R.id.job2_button4);
        //设置此按钮不可见，但是依然占用着位置
        button1.setVisibility(View.INVISIBLE);
        /*Toast.makeText(Activity_job_2.this,getIntent().getStringExtra("data"),Toast.LENGTH_LONG).show();*/
        //text1.setText(getIntent().getStringExtra("data"));
        //text.setText("测试内容");
        Button button2=(Button)findViewById(R.id.title_back);
        button2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        button_1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //简历管理
                startActivity(new Intent(Activity_job_2.this,Activity_job3.class));

            }
        });
        button_2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //职位管理
                startActivity(new Intent(Activity_job_2.this,Activity_job6.class));
                //Toast.makeText(Activity_job_2.this,"职位管理预留中",Toast.LENGTH_LONG).show();
            }
        });
        /*button_3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //邀约记录
                startActivity(new Intent(Activity_job_2.this,Activity_job7.class));
                //Toast.makeText(Activity_job_2.this,"邀约记录预留中",Toast.LENGTH_LONG).show();
            }
        });*/
       /* button_4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //人才收藏
                startActivity(new Intent(Activity_job_2.this,Activity_job8.class));
                Toast.makeText(Activity_job_2.this,"人才收藏预留中",Toast.LENGTH_LONG).show();
            }
        });*/
    }

}
